package com.jxdinfo.hussar.activitidemo.utils.log.thread;

import com.jxdinfo.hussar.activitidemo.utils.log.ServiceLog;

public class LogWriteThread implements Runnable {

	String log;
	String type;

	public LogWriteThread(String log,String type) {
		this.log = log;
		this.type = type;
	}

	public void run() {
		if (type.equals("info")){
			ServiceLog.infoSql.info(log);
		}
		else{
			ServiceLog.errorSql.info(log);
		}

		
	}
}